package Manu;
import Operate.Login;
import Operate.Register;
import com.sun.org.apache.xpath.internal.operations.Operation;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        System.out.println("********欢迎来到用户管理系统********");
        System.out.println("1.登录");
        System.out.println("2.注册");
        System.out.println("3.退出");
        System.out.println("请输入您要进行操作的序号：");
        Scanner sc = new Scanner(System.in);
        int i = 0;

        Operation operation = new Operation();

        while (i != 3) {
            i = sc.nextInt();
            switch (i) {
                case 1:
                    Login.login();
                    break;
                case 2:
                    Register.register();
                    break;
                case 3:
                    System.out.println("谢谢使用！");
                    break;
                default:
                    System.out.println("输入错误，请重新正确输入！");
                    break;
            }
        }
//        sc.close();
    }
}